#include <fhetext/Sprite.h>
#include <fhe/core/Registerers.h>

namespace fhe
{
  namespace text
  {
    FHE_NODE_INHERIT( fhetext, Sprite, core, SceneNode2i );
    FHE_VAR( fhetext, Sprite, text );
    FHE_VAR( fhetext, Sprite, halign );
    FHE_VAR( fhetext, Sprite, valign );
    
    Sprite::Sprite()
      : halign( 0 )
      , valign( 0 )
    {
    }
    
    Sprite::~Sprite()
    {
    }
    
    void Sprite::render( IRenderContext2i* context )
    {
      Super::render( context );
      context->blit( text );
    }
    
    void Sprite::unrender( IRenderContext2i* context )
    {
      Super::unrender( context );
    }
  }
}
